package io.renren.modules.lanling.service.impl;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.lanling.dao.SignUpPaymentLogDao;
import io.renren.modules.lanling.entity.SignUpPaymentLogEntity;
import io.renren.modules.lanling.service.SignUpPaymentLogService;


@Service("signUpPaymentLogService")
public class SignUpPaymentLogServiceImpl extends ServiceImpl<SignUpPaymentLogDao, SignUpPaymentLogEntity> implements SignUpPaymentLogService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Query query = new Query(params);
        List<SignUpPaymentLogEntity> examEntityList = this.baseMapper.queryList(query);
        Integer total = this.baseMapper.queryTotal(query);
        return new PageUtils(examEntityList, total, query.getLimit(), query.getCurrPage());
    }

    @Override
    public SignUpPaymentLogEntity queryObject(Integer id) {
        return this.baseMapper.queryObject(id);
    }

    @Override
    public Boolean update(SignUpPaymentLogEntity invoiceEntity) {
        return this.baseMapper.update(invoiceEntity);
    }

    @Override
    public Boolean handleInvoice(List<Integer> ids) {
        return this.baseMapper.handleInvoice(ids);
    }
}